import { controller, action, Controller, routeData } from "maishu-node-mvc";

@controller("/auth/application")
export default class ApplicationController extends Controller {
    @action()
    async list() {
        return [
            { id: "7BBFA36C-8115-47AD-8D47-9E52B58E7EFD", name: "花加", user_id: "69450598-f53e-a7f0-4ac0-743bc76989ad" }
        ];
    }

    @action()
    async get(@routeData { id }) {
        return {
            id
        }
    }
}